package com.ecut.property_project.service.contract;

import com.ecut.property_project.mapper.contract.ContractHeadMapper;
import com.ecut.property_project.model.contract.ContractHead;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ContractHeadService{

    @Resource
    private ContractHeadMapper contractHeadMapper;

    
    public int deleteByPrimaryKey(String contractId) {
        return contractHeadMapper.deleteByPrimaryKey(contractId);
    }

    
    public int insert(ContractHead record) {
        return contractHeadMapper.insert(record);
    }

    
    public int insertSelective(ContractHead record) {
        return contractHeadMapper.insertSelective(record);
    }

    public List<ContractHead> selectAll(){ return contractHeadMapper.selectAll(); }

    public List<ContractHead> selectByPage(Integer page, Integer pageSize){return contractHeadMapper.selectByPage(page,pageSize);}

    public ContractHead selectByPrimaryKey(String contractId) {
        return contractHeadMapper.selectByPrimaryKey(contractId);
    }

    
    public int updateByPrimaryKeySelective(ContractHead record) {
        return contractHeadMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ContractHead record) {
        return contractHeadMapper.updateByPrimaryKey(record);
    }

}
